﻿using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using Gao.Poker.App.Win;

namespace Gao.Poker.App
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWin : Window
    {
        public MainWin()
        {
            InitializeComponent();
            FullScreenManager.RepairWpfWindowFullScreenBehavior(this);
        }

        private void Window_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            this.DragMove();
        }

        private void closeButton_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
            Application.Current.Shutdown();
        }

        private void maxButton_Click(object sender, RoutedEventArgs e)
        {
            if (WindowState == WindowState.Normal)
                WindowState = WindowState.Maximized;
            else
                WindowState = WindowState.Normal;
        }

        private void mniButton_Click(object sender, RoutedEventArgs e)
        {
            this.WindowState = WindowState.Minimized;
        }

        private void menuButton_Click(object sender, RoutedEventArgs e)
        {
            //Menu.IsOpen = true;
        }

        private void NewMebmer_Click(object sender, RoutedEventArgs e)
        {
            AddMemberWin win = new AddMemberWin();
            win.Show();
        }

        private void Prodect_Click(object sender, RoutedEventArgs e)
        {
            EditProductWin win = new EditProductWin();
            win.Show();
        }

        private void SendSms_Click(object sender, RoutedEventArgs e)
        {
            SendSmsWin win = new SendSmsWin();
            win.Show();
        }

        private void SendSmsHistory_Click(object sender, RoutedEventArgs e)
        {
            SendSmsHistoryWin win = new SendSmsHistoryWin();
            win.Show();
        }

        private void Consumption_Click(object sender, RoutedEventArgs e)
        {
            ConsumptionWin win = new ConsumptionWin();
            win.Show();
        }

        private void SalesSummary_Click(object sender, RoutedEventArgs e)
        {
             SalesSummaryWin win = new SalesSummaryWin();
             win.Show();
        }

        private void Competition_Click(object sender, RoutedEventArgs e)
        {
            CompetitionWin win = new CompetitionWin();
            win.Show();
        }

        private void CompetitionManage_Click(object sender, RoutedEventArgs e)
        {
            CompetitionManageWin win = new CompetitionManageWin();
            win.Show();
        }

        private void Tables_Click(object sender, RoutedEventArgs e)
        {
            TablesWin win = new TablesWin();
            win.Show();
        }

        private void MemberManage_Click(object sender, RoutedEventArgs e)
        {
            MemberManageWin win = new MemberManageWin();
            win.Show();
        }
    }
}
